<?php
/**
 * Created by PhpStorm.
 * User: 1
 * Date: 2018/3/23
 * Time: 9:24
 */

namespace app\api\controller\v1;
header("Content-type:text/html;charset=utf-8");

use think\Db;
use app\common\lib\exception\ApiException;
use app\api\model\StudentStopLesson as M;

class StudentStopLesson extends Common
{

    /**
     * 学生申请停课
     * @param les_id array 申请停课id即课程详情id 必传
     * @param student_id int 学生id 申请停课的学生
     * @param stu_content string 申请停课原因
     * @author 巫玉梅 <1120504614@qq.com>
     * @return ApiException|array|string|\think\response\Json
     */
    public function save(){
        $result = (new M())->addStuStopLes();
        return $result;
    }
}